export enum BusinessStatus {
  OPEN = 1, // 营业中
  CLOSED = 0 // 休息中
}

export function businessStatusLabelOf(value?: number): string {
  if (value === BusinessStatus.OPEN) return '营业中'
  if (value === BusinessStatus.CLOSED) return '休息中'
  return ''
}

export function businessStatusColorOf(value?: number): string {
  if (value === BusinessStatus.OPEN) return '#41b883'
  if (value === BusinessStatus.CLOSED) return '#464646'
  return ''
}
